package com.hj.dapp.business.customer.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hj.dapp.business.customer.model.IntendedCustomer;
import com.hj.dapp.common.request.PageRequest;

import java.security.Principal;
import java.util.List;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2024/1/22
 */
public interface IntendedCustomerService {
    void save(IntendedCustomer intendedCustomer, Principal principal);

    IntendedCustomer get(Long id);

    IPage<IntendedCustomer> page(PageRequest<IntendedCustomer> request, Principal principal);

    void delete(Long id);

    void edit(IntendedCustomer intendedCustomer, Principal principal);

    List<IntendedCustomer> list(String query, Principal principal);
}
